namespace * com.gdl.newagk.dataobject.user

#安管控用户DTO
struct UserRequestDTO {
    1:required i32 id,
    2:required i32 type,
    3:required string field,
}

struct UserDTO {
    1:required i32 id,
	2:required i32 userid,
	3:required i32 gdl_userid,
	4:required i32 identity_id,
	5:required string phone,
	6:required string code,
	7:required string filed,
	8:required string where,
    9:required string update,
	10:optional map<string,string> data
}
#app登录
struct UserLoginRequestDTO {
    1:required string username,
    2:required string password,
    3:i32 plaform,
    4:i32 conpamy_id
}


#安管培忘记密码请求DTO
struct UserPasswordRequestDTO {
    1:required string phone,
    2:required string code,
	3:required string userid,
    4:i32 plaform,
    5:i32 conpamy_id
}

#忘记密码确认密码
struct RePasswordRequestDTO {
    1:required string password,
    2:required string repassword,
	3:required string userid,
	4:required string phone,
	5:required string code,
}

#注册信息请求
struct RegisterRequestDTO{
    1: required string username,
    2: required string truename,
    3: string email
    4: string mobile #手机号
    5: i32 department, #部门ID
    6: string career, #岗位
    7: i32 status, #状态
    8: string note, #备注
    9: string password,
    10: i32 groupid,
    11: i32 projectid,#项目ID
    12: i32 companyid,#公司ID
    13: string companyname,#公司名称
    14: string userid,#member表userid
    15: i32 scores,#积分
    16: map<string,string> info,
    17: string idcard, #身份证
    18: i32 way, #渠道 :1.AGK 2.干电力主网账号 3:电力一线
    19: i32 account_type, #账户类型 1:个人账户 2：企业账户 
	20: required string code,

}